package com.hx.mapper;

import com.hx.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.Mapping;

/**
 * @author: 若若叶
 * @date: 2021/9/17 17:03 FileName: UserMapper Description:
 */
@Repository
public interface UserMapper {
  // 添加用户
  int insertUser(User user);
  // 删除
  int deleteUser(Integer id);
  // 多条件删除
  int deleteUser2(@Param("id") Integer id, @Param("username") String username);
  // 更新数据
  int updateUser(User user);
}
